layui.define(['request'], function (exports) {
    var request = layui.request
    exports('menuApi', {
        list: () => request.get('/admin/system/menu/list'),
        get: (id) => request.get('/admin/system/menu/getInfo/' + id),
        delete: (ids) => request.delete('/admin/system/menu/remove', {ids: ids}),
        edit: (param) => request.put('/admin/system/menu/update', param),
        add: (param) => request.post('/admin/system/menu/add', param),
    });
});